using System;
using ExFlash.Records;

namespace ExFlash.Tags
{
    public class EncodedData : ISwfSerializable
    {
        private readonly int _swfVersion;

        public EncodedU32 Number
        {
            get;
            set;
        }

        public StringRecord Text
        {
            get;
            set;
        }

        public EncodedData(int version)
        {
            _swfVersion = version;
        }

        #region ISwfSerializable Members

        public void SwfDeserialize(BinaryBitReader reader)
        {
            Number = new EncodedU32();
            Number.SwfDeserialize(reader);

            Text = new StringRecord(_swfVersion);
            Text.SwfDeserialize(reader);
        }

        public void SwfSerialize(byte[] arr, ref int offset)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}